<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业</title>
    <style>
        .blue {
            width: 180px;
            height: 180px;
            background-color: blue;
            position: relative;
            /* 固定定位 */
            left: 150px;
            /* 向右移动150像素 */
        }

        .black {
            width: 100px;
            height: 100px;
            background-color: black;
            position: relative;
            /* 固定定位 */
            top: -100px;
            left: 60px;
            /* 往下边走60像素 */
            color: seashell;
            /* 字体颜色大小 */
        }

        .green {
            width: 150px;
            height: 150px;
            background-color: green;
            position: relative;
            top: -180px;
            /* 往上边走180像素 */
            left: 130px;
            /* 往右边走130像素 */
        }

        .red {
            width: 400px;
            height: 150px;
            background-color: red;
            position: relative;
            top: -400px;
            /* 往上走400像素 */
            left: 200px;
            /* 往右边走200像素*/
            color: springgreen;
        }

        .yellow_box {
            position: relative;
        }

        .yellow {
            width: 120px;
            height: 50px;
            position: absolute;
            right: 0;
            /* 贴右边边框 */
            top: 100px;
            /* 往下走100像素 */
            background-color: yellow;
        }
    </style>
</head>

<body>
    <div class="blue">陈</div>
    <div class="black">泽</div>
    <div class="green">鸿</div>
    <div class="red">蓝景培训
        <div class="yellow_box">
            <div class="yellow"></div>
        </div>
    </div>
</body>

</html>